@charset "utf-8";
@import "reset";
@import "common";



//热门游戏
//top1
.p1 {
    text-align: right;
    padding: 22px 0 32px;
    font-size: 0;
    position: relative;
    //左上角热门图标
    i {
        display: block;
        position: absolute;
        z-index: 0;
        top: 0;
        left: 0;
        background-color: #e14738;
        width: 40px;
        height: 86px;
        color: white;
        font-size: 20px;
        padding: 25px 10px 0;
        span {
            position: absolute;
            bottom: -28px;
            left: 0;
            z-index: -1;
            border-style: solid;
            border-bottom-style: dashed;
            border-color: #e14738;
            border-bottom-color: transparent;
            border-width: 14px 20px;
        }
    }
    img {
        width: 100%;
    }
    p {
        line-height: 30px;
        padding-bottom: 22px;
        font-size: 12px;
        text-align: justify;
        text-align-last: right;
    }
    .picbox {
        display: inline-block;
        width: 47%;
        margin-right:6% ;
        margin-bottom: 30px;
        &:nth-of-type(2n + 1) {
            margin-right: 0;
        }
    }
}
.p1_h {
    line-height: 50px;
    font-size: 30px;
    font-weight: bold;
}
//top2 
.p2 {
    @extend .p1;
    text-align: left;
}

//更多案例
.moregame {
    font-size: 0;
}
.moregame_h {
    font-size: 36px;
    line-height: 49px;
}
.game {
    display: inline-block;
    width: 32%;
    margin-right:2%;
    margin-top: 30px;
    &:nth-of-type(3n + 1){
        margin-right: 0;
    }
    .picbox {
        position: relative;
        width: 100%;
        height: 134px;
        &:hover span{
            opacity: 1;
        }
        img {
            width: 100%;
        }
        span {
            text-align: justify;
            transition: all 1s;
            opacity: 0;
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 12px 15px;
            overflow: hidden;
            font-size: 12px;
            line-height: 20px;
            color: white;
            background-color: rgba(0,0,0,.3);
        }
    }
    .name {
        text-align: center;
        font-size: 14px;
        line-height: 40px;
    }
}





@media (max-width:767px){
    //轮播
    .caro {
        img {
            position: absolute;
            top: 0;
            left: -600px;
            right: -600px;
            max-width: 200% !important;
            width: 195%;
            margin:auto;
        }
    }
    .item {
        padding-bottom: 50%;
        position: relative;
        overflow: hidden;
    }
    
    //热门游戏
    .sidepic {
        display: none;
    }
    .p1 {
        i {
            padding: 2px;
            font-size: 18px;
            height: auto;
            span {
                border-top: 0;
                bottom:-14px;
            }
        }
    }
    .p1,.p2 {
        padding: 0;
        p{
            font-size: 16px;
        }
        .picbox{
            width: 100%;
            margin-bottom: 10px;
            margin-right: 0;
            &:nth-of-type(3){
                display: none;
            }
            &:nth-of-type(4){
                display: none;
            }
        }
    }
    
    //更多案例
    .moregame_h{
        font-size: 30px;
        margin-top: 20px;
    }
    .game {
        margin-top: 10px;
        margin-right: 4%;
        width: 48%;
        &:nth-of-type(3n + 1){
            margin-right: 4%;
        }
        &:nth-of-type(2n + 1){
        margin-right: 0%;
        }
        &:nth-of-type(n + 6){
            display: none;
        }
        .picbox {
            height: auto;
        }
    }
}

